package com.matrix.framework.core.upload;

/**
 * 文件上传响应对象
 *
 * Copyright © 海平面工作室 版权所有
 *
 * @Author: Leo
 * @Create: 2025-08-17 10:00:00
 * @Since 1.2
 */
public class FileUploadResponse {
    private boolean success;   // 上传是否成功
    private String message;    // 响应消息
    private String filePath;   // 文件路径
    private boolean merged;    // 是否已合并完成

    public FileUploadResponse(boolean success, String message) {
        this.success = success;
        this.message = message;
    }

    public FileUploadResponse(boolean success, String message, String filePath, boolean merged) {
        this.success = success;
        this.message = message;
        this.filePath = filePath;
        this.merged = merged;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }

    public boolean isMerged() {
        return merged;
    }

    public void setMerged(boolean merged) {
        this.merged = merged;
    }
}